<?php


namespace api\zmt\controller;

use api\zmt\model\BannerModel;
use cmf\controller\RestBaseController;
use think\facade\Filesystem;

class BannerController extends RestBaseController
{
    public function index()
    {
        $page = input('page/d',1);
        $pageSize = input('page_size/d',2);
        $list = BannerModel::page($page,$pageSize)
            ->select();
        $this->success('轮播图',$list);
    }

}